<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="theme/images/favicon.ico">
    <title><?php echo $this->config['backend_webname'] ?></title>
    <!-- Bootstrap Core CSS -->
    <link href="theme/css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="theme/css/helper.css" rel="stylesheet">
    <link href="theme/css/style.css" rel="stylesheet">
    <link href="theme/css/customize.css" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:** -->
    <!--[if lt IE 9]>
    <script src="theme/js/html5shiv.js"></script>
    <script src="theme/js/respond.min.js"></script>
    <![endif]-->
    <!-- All Jquery -->
    <script src="theme/js/lib/jquery/jquery.min.js"></script>
</head>

<body class="fix-header fix-sidebar">
<!-- Preloader - style you can find in spinners.css -->
<div class="preloader">
    <svg class="circular" viewBox="25 25 50 50">
        <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/>
    </svg>
</div>
<!-- Main wrapper  -->
<div id="main-wrapper">
    <!-- header header  -->
    <div class="header">
        <nav class="navbar top-navbar navbar-expand-md navbar-light">
            <!-- Logo -->
            <div class="navbar-header navbar-left">
                <a class="navbar-brand" href="index.html">
                    <!-- Logo icon -->
                    <b><img src="theme/images/logo.png" alt="RKCMS - 蓝科信息发布系统" class="dark-logo"/></b>
                    <!--End Logo icon -->
                    <!-- Logo text -->
                    <span><img src="theme/images/logo-text.png" alt="RKCMS - 蓝科信息发布系统" class="dark-logo"/></span>
                </a>
            </div>
            <!-- End Logo -->
            <div class="navbar-collapse">
                <!-- toggle and nav items -->
                <ul class="navbar-nav mr-auto mt-md-0">


                </ul>
                <!-- User profile and search -->
                <ul class="navbar-nav my-lg-0">
                    <!-- Profile -->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-muted  " href="#" data-toggle="dropdown"
                           aria-haspopup="true" aria-expanded="false"><i class="fa fa-user "></i>&nbsp;&nbsp;<?php echo Yii::app()->user->getId() ?></a>
                        <div class="dropdown-menu dropdown-menu-right animated zoomIn">
                            <ul class="dropdown-user">
                                <li><a href="#"><i class="ti-user"></i> 设置</a></li>
                                <li><a href="#"><i class="fa fa-power-off"></i> 退出</a></li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
    <!-- End header header -->
    <!-- Left Sidebar  -->
    <div class="left-sidebar">
        <!-- Sidebar scroll-->
        <div class="scroll-sidebar">
            <!-- Sidebar navigation-->
            <nav class="sidebar-nav">
                <ul id="sidebarnav">
                    <li class="nav-devider"></li>
                    <li class="nav-label">功能列表</li>
                    <?php
                    $activemenu = null;
                    foreach ($this->menus as $menukey => $menuvalue) {
                        if ($this->active == $menuvalue['menu_key']) {
                            $activemenu = $menuvalue;
                        }
                        ?>
                        <li class="<?php echo $this->active == $menuvalue['menu_key'] ? "active" : ""; ?>"><a
                                    class="<?php echo (sizeof($menuvalue['children']) > 0) ? "has-arrow" : "" ?> "
                                    href="<?php echo $menuvalue['url']; ?>" aria-expanded="false"><i
                                        class="fa <?php echo $menuvalue['menu_icon']; ?>"></i><span
                                        class="hide-menu"><?php echo $menuvalue['menu_text'] ?> </span></a>
                            <?php
                            if (sizeof($menuvalue['children']) > 0) {
                                ?>
                                <ul aria-expanded="false" class="collapse">
                                    <?php
                                    foreach ($menuvalue['children'] as $item) {
                                        if ($this->active == $item['menu_key']) {
                                            $activemenu = $item;
                                        }
                                        ?>
                                        <li><a href="<?php echo $item['url']; ?>"><?php echo $item['menu_text']; ?> </a>
                                        </li>
                                        <?php
                                    }
                                    ?>
                                </ul>
                                <?php
                            }
                            ?>
                        </li>
                        <?php
                    }
//                    print_r($activemenu);
                    ?>
                </ul>
            </nav>
            <!-- End Sidebar navigation -->
        </div>
        <!-- End Sidebar scroll-->
    </div>
    <!-- End Left Sidebar  -->
    <!-- Page wrapper  -->
    <div class="page-wrapper">
        <!-- Bread crumb -->
        <div class="row page-titles">
            <div class="col-md-5 align-self-center">
                <h3 class="text-primary"><?php echo $activemenu['menu_text']; ?></h3></div>
            <div class="col-md-7 align-self-center">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="javascript:void(0)">首页</a></li>
                    <li class="breadcrumb-item active"><?php echo $activemenu['menu_text']; ?></li>
                </ol>
            </div>
        </div>
        <!-- End Bread crumb -->
        <!-- Container fluid  -->
        <div class="container-fluid">
            <!-- Start Page Content -->
            <?php echo $content; ?>
            <!-- End PAge Content -->
        </div>
        <!-- End Container fluid  -->
    </div>
    <!-- End Page wrapper  -->
</div>
<!-- End Wrapper -->
<!-- Bootstrap tether Core JavaScript -->
<script src="theme/js/lib/bootstrap/js/popper.min.js"></script>
<script src="theme/js/lib/bootstrap/js/bootstrap.min.js"></script>
<!-- slimscrollbar scrollbar JavaScript -->
<script src="theme/js/jquery.slimscroll.js"></script>
<!--Menu sidebar -->
<script src="theme/js/sidebarmenu.js"></script>
<!--stickey kit -->
<script src="theme/js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<!--Custom JavaScript -->
<script src="theme/js/scripts.js"></script>

</body>

</html>